#include <iostream>
using namespace std;
bool isOneBitCharacter(int* bits, int bitsSize)
{
    int i = 0;
    while (i < bitsSize)
    {
        if (i == bitsSize - 1)
            return true;
        if (bits[i] == 1)
        {
            i += 2;
        }
        else
        {
            i += 1;
        }
    }
        return false;
}
int main()
{
    int arr[] = { 1,1,0 };
    cout<<isOneBitCharacter(arr, 4)<<endl;
    system("pause");
    return 0;
}
